System and method for creating background blur in camera panning or motion

ABSTRACT

Systems, imaging devices and methods for creating background blur in camera panning or motion. Using an imaging device with an image sensor, a method may comprise selecting an object to be tracked in a scene, recording an image or an image stream, and aligning the selected object optically and/or digitally to a same position on the image sensor while the selected object moves relative to the imaging device or relative to the scene, thereby creating a blurred image background and/or foreground relative to the selected object and a sense of panning or motion.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a 371 application from international patent application PCT/IB2020/055428 filed Jun. 9, 2020, and is related to and claims the benefit of priority from U.S. provisional patent application No. 62/881,007 filed Jul. 31, 2019, which is incorporated herein by reference in its entirety.

FIELD

Embodiments disclosed herein relate in general to digital cameras, and in particular to effects during camera panning or motion.

BACKGROUND

Manual camera panning involves a user opening a camera shutter and tracking a moving subject (or object) during acquisition, keeping the subject or object in the same position of the frame for the duration of the exposure, before closing the shutter, to thereby acquire an image comprising a blurred background and a relatively sharp subject. The exposure time must be long enough to allow the background to blur due to the camera movement as the photographer follows the subject in the viewfinder. In the following description, “subject” and “object” may be used interchangeably.

The ability of the photographer to pan the camera to blindly track a selected object is also key to acquiring an image of the selected object in motion. A poor technique can result in blurring of both the selected object and of the background and/or foreground, due to e.g. hand motion. Thus, it can be quite difficult to acquire an image depicting a sense of motion of the selected object by manual camera panning. To aid in capturing panned pictures, photographers can use tripods and monopods or motion control camera robots, which make it easy to swing the camera in one plane, while keeping it steady in others.

It is often desirable, particularly in the field of sports photography, to capture an image depicting a sense of motion of a selected object. It is desirable to have an improved method of acquiring an image depicting a sense of motion of the selected object with a simple photographing technique that results in a smooth background/foreground blur and in a large field of view (FOV).

SUMMARY

Embodiments disclosed herein teach methods for automatically generating still images or videos with a panning effect and other blurring effects derived from camera or object motion. The methods use either a single camera or multiple cameras and output background and foreground blur according to the movement of the camera(s) or the scene.

In exemplary embodiments, there are provided methods comprising: in an imaging device that includes an image sensor, selecting an object to be tracked in a scene; recording an image or an image stream to provide a respective recorded image or recorded image stream; and aligning the selected object to a same given position on the image sensor while the selected object moves relative to the imaging device or relative to the scene, thereby creating a blurred image background and/or foreground relative to the selected object.

In an embodiment, the aligning includes aligning the selected object to a same given position on the image sensor optically.

In an embodiment, the imaging device includes a first camera having a first image sensor and a second camera having a second image sensor, wherein the recording and the aligning are performed with the first camera and wherein at least one parameter needed for the aligning is calculated using information provided by the second camera.

In an embodiment, the image sensor includes a first plurality of pixels that provide information for calculating at least one parameter needed for the aligning, and a second plurality of pixels used for the recording.

In an embodiment, the recording includes recording a plurality of frames and the aligning includes aligning the selected object optically to a similar position on the image sensor and further aligning the selected object digitally to the same given position on the image sensor.

In an embodiment, the recording includes recording a plurality of frames and the aligning includes aligning the selected object optically to discrete pixels on the image sensor and further aligning the selected object digitally to the same given position on the image sensor.

In an embodiment, the recorded image stream includes a plurality of individual images and the method further comprises generating artificial image data using individual image data.

In an embodiment, a method further comprises playing the recorded image stream with a frame per second (fps) rate different than a fps rate used for recording the image stream.

In an embodiment, the recorded image stream is divided into two or more sequences and the method further comprises playing each sequence with a different frame per second rate.

In an embodiment, a method further comprises dividing the recorded image stream into two or more sequences that exhibit a different degree of blurring.

In an embodiment, the aligning includes performing an inference for a future position of the selected object.

In an embodiment, the selected object includes a star.

In an embodiment, the at least one parameter needed for the aligning is selected from the group consisting of a shift parameter, a scale parameter and a rotation parameter.

In an embodiment, the recording includes recording a plurality of frames, and the aligning includes aligning the selected object optically to a similar position on the first image sensor and further aligning the selected object digitally to the same given position on the first image sensor.

In an embodiment, the recording includes recording a plurality of frames and the aligning includes aligning the selected object optically to discrete pixels on the first image sensor and further aligning the selected object digitally to the same given position on the first image sensor.

In an embodiment, calibration data between the first camera and the second camera is stored in a non-volatile memory.

In an embodiment, the first and second pluralities of pixels add up to a total number of sensor pixels.

In an embodiment, the at least one parameter needed for the aligning is selected from the group consisting of a shift parameter, a scale parameter and a rotation parameter.

In an embodiment, the artificial image data is used to increase uniformity in image blurring.

In exemplary embodiments, there are provided systems comprising: an imaging device that includes an image sensor for recording an image or an image stream to provide a respective recorded image or recorded image stream; and a processor configured to select an object to be tracked in a scene and to align the selected object to a same given position on the image sensor while the selected object moves relative to the imaging device or relative to the scene, thereby creating a blurred image background and/or foreground relative to the selected object.

In an embodiment, the processor configuration to align the selected object to a same given position on the image sensor includes a configuration to instruct a reflecting element to scan a field of view that includes the object.

In an embodiment, the imaging device comprises a first camera and a second camera.

In various embodiments, a system as above or below is a smartphone.

BRIEF DESCRIPTION OF THE DRAWINGS

Non-limiting examples of embodiments disclosed herein are described below with reference to figures attached hereto that are listed following this paragraph. The drawings and descriptions are meant to illuminate and clarify embodiments disclosed herein and should not be considered limiting in any way. Like elements in different drawings may be indicated by like numerals. Elements in the drawings are not necessarily drawn to scale.

FIG. 1A illustrates phenomena with multi-frame averaging using low frequency capture;

FIG. 1B illustrates phenomena with multi-frame averaging using high frequency capture;

FIG. 2A shows an example of a dynamic scene with in which an object moves relative to a fixed (non-moving) background;

FIG. 2B shows an example of a dynamic scene in which a camera moves while photographing an object with a position fixed relative to a background;

FIG. 3 shows in (a) to (g) the different types of exemplary blurring effects;

FIG. 4 shows an exemplary background blur using object movement further/closer to the camera;

FIG. 5 shows an exemplary background using object movement perpendicular to the optical axis of the camera;

FIG. 6 shows an exemplary background blur using camera motion perpendicular to the optical axis of the camera;

FIG. 7 illustrates in a flow chart an exemplary embodiment of a method for acquiring an image depicting a sense of motion of the object disclosed herein;

FIG. 8A shows schematically an embodiment of a dual-aperture digital camera with an adjustable Tele field of view;

FIG. 8B shows schematically a single aperture folded digital camera with an adjustable field of view;

FIG. 9 shows schematically an embodiment of an electronic device that includes multi-aperture cameras with at least one scanning Tele camera.

DETAILED DESCRIPTION

FIG. 1A shows an example of an averaged image of a dynamic scene, generated by averaging a plurality of single images that are captured at low frequency. The scene shows a background 102 comprising trees and a selected object 104. Capturing at low frequency means that a relatively large time passes between two consecutively captured images. The term “relatively large time” refers to a period of time in which significant amount of movement occurs in the scene. Capturing the single images at low frequency leads to an averaged image that has visible “steps” between features of objects. As an example we refer to the steps that are visible between the positions a-d of the respective tops of the two trees 102 in a background.

Artificial blur as known in the art may be used to modify the averaged image and to obtain a more continuous blurring of image features or regions. For example, one may use artificial blurring to obtain a degree of blurring as present for the top of the trees in FIG. 1B. In other examples a more continuous blurring may be obtained by generating artificial image data. Referring to the image data of the left tree visible in FIG. 1A, one may e.g. use the image data from the frame that created the left top of the tree (first image data) and the image data from the frame that created the right top of the tree (second image data) to artificially generate one or more images. For example, one may apply a motion model that moves an object (here: the tree) from a first position to a second position (here: from left to right position). Image data may be artificially generated by “freezing” one or more positions generated by the motion model. The motion model may be a uniform motion along a straight line that connects an object feature (here: top of the tree) at a first position to a second position (here: from left to right position) or any other motion, e.g. a uniformly accelerated motion or a motion that is performed along an arbitrary non-straight line.

In some examples, a “degree of blurring” may be defined relatively and in respect to visual appearance only. For example, one may refer to a “stronger blurring” versus a “weaker blurring” or to a “decrease in degree of blurring” etc. when comparing two or more images that appear more blurred or less blurred to a skilled user. In some cases, a “degree of blurring” may be defined by the number of images (or “frames”) that were averaged for generating an image with blurred background and/or foreground as described herein. A higher degree of blurring may correspond to a higher number of images that were averaged for image generation. In yet another example a “degree of blurring” may be defined by the number of pixels that were averaged for generating an image. A higher degree of blurring may correspond to a higher number of pixels that were averaged for image generation. For example, a low degree of blurring might be achieved if 2-3 pixels were averaged, and a high degree of blurring might be achieved if 40-50 pixels were averaged. In yet other examples a “degree of blurring” may be defined by a value that may be obtained by calculating a sum over an image-to-image deviation from the values of identical pixels for all pixels and all averaged images. A higher degree of blurring may correspond to a higher value of the sum. Functions as known in the art such as a root mean square (rms) function may be used for calculating the deviation.

FIG. 1B shows another example of an averaged image of a dynamic scene, generated by averaging a plurality of single images that are captured at high frequency. Capturing at high frequency means that a relatively short time passes between two consecutively captured images. Capturing the single images at high frequency leads to an averaged image that has almost no visible steps but a smooth transition between features of objects. In the example of the positions of the trees in background 102, we find no visible steps such as in FIG. 1A, but a smooth transition between the different positions of the trees. The smooth transition may be desired as it may be perceived as a uniform blur.

Dynamic scenes in photography may involve either camera movements, object movements or both. FIG. 2A shows an example of a dynamic scene with in which an object 200 (e.g. a boy on a skateboard) moves relative to a fixed (non-moving) background 202. The scene is imaged (photographed) by a camera 204. Camera 204 may include a lens, an image sensor and a processing unit (processor), see also FIG. 9. FIG. 2B shows an example of another dynamic scene in which camera 204 moves while photographing a selected object (e.g. a child) 200′ that has a fixed position relative to background 202. Selected object 200 and background 202 in FIG. 2A, or selected object 200′ and background 202 in FIG. 2B, are at different distances from camera 204.

In photographing a dynamic scene, it is desirable to keep the object in focus while having a blurry background and/or foreground. Embodiment disclosed herein provide this in many ways, some of which are shown in FIG. 3.

FIG. 3 shows in (a) to (g) the different types of exemplary blurring effects produced by a method disclosed herein: (a) a camera shift along the X direction in which background trees 302 behind an object (human shape) 304 exhibit a linear blur in the X direction while object 304 remains sharp; (b) small camera shifts in the X and Y directions that cause a Gaussian or “disk” type blur in trees 302; (c) large camera shifts in the X and Y directions that cause a “heart shape” type blur in trees 302; (d) movement of object 304 in the X direction relative to trees 302 causing a shift type blur (similar to the one in (a), but slightly smaller compared to the movement and independent of the distance between the object and background); (e) movement of object 304 in the Z direction relative to trees 302 causing a scale type blur; (f) rotation of object 304 relative to trees 302 causing a rotation type blur; (g) deformation movement (e.g. waving of hands) of object 304 relative to trees 302 causing a non-rigid object shape change/transformation or non-rigid object/posture change type blur; and (h) a camera shift along the X direction in which background trees 302 and foreground trees 306 behind an object (human shape) 304 show a linear blur in the X direction while object 304 remains sharp.

In some embodiments, a method described herein may not only be used for imaging a scene that one may typically refer to as a dynamic scene, but also for other purposes, for example for imaging a scene in low light conditions. “Low light” may be defined as a condition in which a scene has an average of less than 50-70 Lux, e.g. 20 Lux or 5 Lux. More generally, a method described herein may be used for capturing scenes with a long effective exposure time. A long effective exposure time may be defined by multiplication of the degree of dynamics or movement in the scene and the actual exposure time. A long effective exposure time may e.g. be obtained by an object moving fast with an angular velocity ω₁ during exposure time T₁ as well as by an object moving more slowly with an angular velocity ω₂=½·ω₁ captured with a longer exposure time T₂=2T₁. An example for objects moving with slow angular velocity ω that may be captured with a long exposure time T may e.g. be the stars visible in a night sky.

In some embodiments, one obtains a long effective exposure time if one or more objects in a scene or the entire scene move by a significant amount during exposure. In an example, a significant amount of movement may be defined as a movement during exposure that leads to a smearing of a specific object point over e.g. 1-3 pixels of the image sensor. In another example, a significant amount of movement may be defined as a movement during exposure that leads to a smearing of a specific object point over e.g. 10 or more pixels. In yet another example, a significant amount of movement may be defined as a movement during exposure that leads to a smearing of a specific object point over 20-250 or more pixels.

According to embodiments described next, background and foreground blur may be created intentionally and artificially through the following four scenarios, illustrated with reference to FIGS. 4-6.

In a first scenario, the selected object moves closer/further from the camera, see e.g. FIG. 4. When the object moves closer to the camera, its size becomes larger on the camera image sensor, and when the object moves away from the camera, its size becomes smaller on the camera image sensor. This represents a scale change. If the scale change of an object is not equal to the scale change of the rest of the scene, objects that are not moving in this manner will be blurred. In this scenario, the object is scaled (also referred to as “aligned”) to its size on the sensor when recording starts, using mechanical zoom while capturing the image.

In more detail, frame (a) shows an image with an object (human form) 400 far away from the camera, with the background behind object 400 including two trees 402 a and 402 b. Object 400 is a selected object. Frame (a) corresponds to the initial scene on the sensor when image recoding begins. Frame (b) shows an image with an object 400′ (representing object 400 now at a different location and time) closer to the camera in case no alignment was used. As in FIG. 4, in the following FIGS. 5 and 6 numerals 500 and 600 represent an originally selected object while numerals 500′ and 600′ represent the same respective object at a different location and time. Frame (c) shows scene (b) optically and/or digitally aligned (scaled) to its size on the sensor when recording started, see step 708 below, so that the object is of the same size and at the same location as in frame (a). Note that the movement decreased the size of trees 402 a′ and 402 b′ relative to the size of object 400′ compared to frame (a). Frame (c) corresponds to the final scene on the sensor when finishing recording the image. Frame (d) shows overlaid images of object 400 and trees 402 a and 402 b from frames (a) and (c) from a start step 704 (frame a) and an end step 710 (frame c) of the capture. Frame (e) shows the final capture result, which includes the light captured on the sensor during recording (steps 704-708). This includes the first scene (a), the last scene (c) and all the scenes in between.

In some embodiments and optionally, the alignment may be performed digitally after capture. In yet other embodiments e.g. in a multi-frame case (see step 708 below) and optionally, part of the alignment may be performed optically and/or digitally during capture and part digitally after capture. For example, the aligning may include aligning the selected object optically to discrete pixels on the image sensor and further aligning the selected object digitally to the same given position on the image sensor. Aligning the selected object optically to discrete pixels may refer to an optical alignment that does not include sub-pixel alignment.

In a second scenario, the camera is still, and the selected object moves (shifts) perpendicular to the optical axis of the camera lens, see e.g. FIG. 5. If the shift movement of the selected object is not equal to the shift movement of the rest of the scene on the camera sensor, objects that do not move in this manner will be blurred. In this scenario, the selected object is aligned to its location on the sensor when the recording starts. The selected object is aligned (shifted) while capturing the image using a mechanical shift. The mechanical shift may e.g. be performed by moving a reflecting element or an optical path folding element (OPFE) such as a prism, or by moving a camera's lens or by moving the lateral position or the tilt angle position of a camera module.

FIG. 5 describes the result of background blur obtained according to an embodiment of a method described herein for the case in which a selected object moves perpendicular to the optical axis of the camera lens. In more detail, frame (a) shows an image with a selected object (human form) 500 with the background behind object 500 including two trees 502 a and 502 b. Frame (a) corresponds to the initial scene on the sensor when beginning to record the image. Frame (b) shows an image with an object 500′ representing object 500 that has moved right compared to the camera, in case no alignment is used. Frame (c) shows scene (b) optically and/or digitally aligned (shifted) by moving the field of view (FOV) to align object 500′ see step 708 below, so that object 500′ is at the same location as object 500 in frame (a). Note that the shift moved trees 502 a′ and 502 b′ to the left on the sensor. Frame (c) corresponds to the final scene on the sensor when image recording ends. Frame (d) shows overlaid images of object 500 and trees 502 a and 502 b from frames (a) and (c) from a start step 704 (frame a) and an end step 710 (frame c) of the capture. Frame (e) shows the final capture result, which includes the light captured on the sensor during the recording (steps 704-708). This includes the first scene (a), the last scene (c) and all the scenes in between.

In a third scenario, the camera moves perpendicular to the optical axis while the object and background/foreground do not move. This causes the distance between the object and camera to change, see e.g. FIG. 6. All objects in the scene that are at a different distance to the camera than a selected object will be blurred, due to the disparity between the baselines of the camera locations throughout the movement. If the distance between the selected object and the camera is not equal to the distance of other objects or the rest of the scene relative to the camera sensor, they will shift differently on the sensor. Objects that do not move in the same manner will be blurred. In this scenario, the selected object is aligned (shifted) using mechanical shift as described above while capturing the image.

FIG. 6 describes the result of background blur obtained according to an embodiment of a method described herein for the case in which the camera moves perpendicular to the optical axis of the camera. In more detail, frame (a) shows an image with an object (human form) 600 with the background behind object 600 including two trees 602 a and 602 b. An object 600′ represents a shifted object 600. Frame (a) corresponds to the initial scene on the sensor when image recording begins. Frame (b) displays an image that moved right compared to the location in frame (a) as a result of camera movement, in case no alignment was used. Frame (c) shows scene (b) optically and/or digitally aligned (shifted) by moving the FOV to align object 600′ so that the selected object is at the same location as in frame (a). Note that the shift moved trees 602 a′ and 602 b′ to the left on the sensor. Frame (c) corresponds to the final scene on the sensor when finishing recording the image. Frame (d) shows overlaid images of object 600 and trees 602 a and 602 b from frames (a) and (c) from a start step 704 (frame a) and an end step 710 (frame c) of the capture. Frame (e) shows the final capture result, which includes the light captured on the sensor during recording (steps 704-708). This includes the first scene (a), the last scene (c) and all the scenes in between.

In a fourth scenario, one can use any combination of the first, second and third scenarios above.

FIG. 7 illustrates in a flow chart an exemplary embodiment of a method for acquiring an image depicting a sense of motion of an object disclosed herein. The flow starts with observing a scene comprising motion induced by movement of an object or movement of the camera. An object to be tracked is selected in step 702 and recording of an image or a video stream during which the object is tracked, and with a moving object or moving the camera, starts in step 704. Shift, scale and rotation calculations are performed for an object seen in the image or in the video stream in step 706. As indicated by the arrow from 708 to 706, the tracking, scale, shift and rotation modifications are recalculated in each frame (or every X set frames). In step 708, in some embodiments, the object is aligned optically and/or digitally to ensure that it remains in the same position on the image sensor of the camera. In some embodiments involving multi-frames, the remainder of the alignment of the object may be performed digitally after recording ends, in step 712, or by a combination of mechanical and digital alignments. In some embodiments for generating a video comprising a stream of images, alignment of an object may be performed such that an object appears at the same position within the FOV of all images of the stream.

In other embodiments for generating a video comprising a stream of images, alignment of an object may be performed such that an object appears to move with an angular velocity ω that corresponds approximately to the angular velocity that the object would have moved within the scene in case that no optical alignment would have been performed in step 708. In some embodiments, a generated image stream may be played at a speed (defined by the frames per second (fps) used for the video) that was used for capturing the video. In other embodiments, a generated image stream may be played with a higher fps for achieving an artistic time-lapse effect or with a lower fps for achieving an artistic slow-motion effect. The fps may not be constant but may be modified throughout the generated video. This may be beneficial for highlighting specific segments within a FOV or for highlighting specific events that may have been occurred during video capture.

In an example, one may highlight a specific event in the video by the following or a similar sequence:

-   -   Playing a first sequence of a video with a constant fps, e.g.         with the fps the video was recorded,     -   Playing a second sequence of the video with a gradually         decreasing fps till the event that is to be highlighted occurs,     -   Playing a third sequence of the video with a constant fps after         the highlighted event occurred,     -   Playing a fourth sequence of the video with a gradually         increasing fps after the event occurred and till the fps of the         first sequence is reached,     -   Playing a fifth sequence of a video with the constant fps of the         first sequence.

The recording of the image or the video stream is finished in step 710, resulting in an image with a blurred background.

In some examples, the object may have been a moving object. This implies that for generating the resulting image, it is not possible to use the entire image data present in each frame, but that only image data from image segments that are present in each image of the image sequence may be usable.

More details of some of the steps performed in FIG. 7 are described below.

Object/Subject Selection Step 702

The selection of the object or subject to be tracked may be done in several ways. The selected object may be identified by a rectangular region of interest (ROI) or by a masked region inside the image. The marking of identification may be done using automatic selection, user selection, or user selection and digital refinement, all of which are known in the art. Tracking methods with improved robustness as known in the art may be used. The tracking methods may rely not only on single object features, but on a plurality of an object's features.

Recording of Image or a Video Stream, Steps 704-710

The recording may be performed using a single long exposure, or by capturing a sequence of short exposure images and averaging them, as follows:

a) Single long exposure, using a long-duration shutter speed. The aperture and digital/analog gain are adjusted automatically to achieve the same brightness level.

b) Multiple images with short exposure and averaging. The exposure time can be short, since the noise will be reduced when averaging many images. For video mode, the output may be averaging the last frames taken, for example the average of the last 10-30 frames.

c) Using a single camera (for example folded camera 804, shown also in FIG. 8A) with different sensor pixel functionality, i.e. some (a plurality) of the sensor pixels experience short multi-exposures while other sensor pixels experience long exposures. For example, by using a Quad sensor (see e.g. Japan patent application No. 2019041178), the quad-Bayer pixel structure enables having two exposures within a group of four pixels. In this case, a selection of the pixels on the image sensor are used for a long exposure and the remaining pixels are used for a short exposure. The final image is a combination of image data from the long and short exposure pixels.

In some embodiments, a single image may be generated and output for displaying to a user. In other embodiments, a stream of images (i.e. a video) may be generated for output. In case a video stream is generated, specific degrees of blur may be desired for specific sequences of the video. This may be achieved by adapting the number of the frames taken for averaging (or averaging). In an example, for a first sequence having a first degree of blurring 10-30 frames may be averaged, while for a second sequence having a second degree of blurring 30-60 frames may be averaged. The second sequence of the generated video has a higher degree of blurring than the first sequence. In another example, 5-10 frames may be averaged to obtain a third sequence exhibiting a weaker blurring than the first and the second sequence. A user or a program may define the degree of blurring in “post capture”, i.e. at an arbitrary time after the image stream was captured. In yet another example, for the sake of highlighting a specific event in the scene, it may be desired to gradually increase the degree of blurring till the event occurs, keeping a constant degree of blurring during the event, and then gradually decrease the degree of blurring. As the blurring relies on averaging the image data present in different frames, the degree of blurring cannot be modified continuously but only in discrete steps. In some examples, the discrete steps are performed by adding or subtracting one or more frames to the sequence or set of frames that are averaged. For achieving a continuous blur modification an artificial blur as known in the art may be superposed on the blur achieved by image averaging. Artificial blur as known in the art may also be used to modify the degree of blur continuously within a single image generated as described herein.

Calculating Shift, Scale and Rotation Step 706

In exemplary embodiments, the object may be tracked in one of the ways outlined below, using for example known cameras described in co-owned international patent applications PCT/IB2016/052179, PCT/IB2016/055308. PCT/IB2016/057366, and PCT/IB2019/053315, and the shift, scale and rotation may be calculated from the result of the tracking.

1. Using a single camera (for example folded camera 804, shown also in FIG. 8A) with different sensor pixel functionality, i.e. some (a plurality) of the sensor pixels experience short multi-exposures while other sensor pixels experience long exposures. The object shift, scale and rotation calculations are performed using information from some (a plurality) of the pixels on sensor 806, for example 1/16 of the total number of pixels. The mechanical alignment is performed on camera 804. Picture recording steps 704-710 are performed on the remaining pixels (i.e. the 15/16 of the total number of pixels not used in the object shift, scale and rotation calculations) of sensor 806.

2. Alternatively using a single camera, the object shift calculation and picture recording are performed on the same camera sensor (e.g. sensor 806) as seen in FIG. 8B. The object is tracked on the video stream and the shift, scale and rotation are calculated. The mechanical alignment is performed while tracking (step 708).

3. Using a dual-camera described for example in PCT/IB2016/057366 and shown in FIG. 8B and FIG. 9: The dual-camera comprises a first upright camera 800 with a sensor 802, and a second folded camera 804 with a sensor 806. Camera 800 can be IR, visible light, structured light or any other type of light and is used for object tracking. The mechanical alignment and picture recording are performed on camera 804. The object position (shift, scale and rotation) calculation is performed by tracking the object using information from sensor 802. To estimate the alignment needed on camera 804 (for step 708), the shift, scale and rotation between the sensors is calculated using feature matching and previous calibration between the cameras. Cameras such as camera 804 (see FIG. 8A) and the dual camera comprising camera 800 and camera 804 (see FIG. 8B) may be included in a host device such as electronic device 900.

In some embodiments, an inference (estimation) of a future position of the moving object may be performed. The inference may be based on parameters such as past shifts, scales and rotations detected in captured frames. These can provide an estimate of future shift, scale and rotation. The estimate may be performed for example by linear extrapolation of past shifts, scales and rotations. In another embodiment non-linear extrapolation may be performed. The inference may also or alternatively be based on machine learning or other techniques known in the art. The inference may be beneficial for performing meaningful mechanical alignment in step 708. As an example, one may consider an object moving at an angular velocity ω_(object) within the FOV of a scene that may be smaller but still in the order of the maximum angular velocity ω_(scan) with which a FOV scan movement (that may be required for performing mechanical alignment) can be performed, e.g. by rotating an OPFE. In this example, the inference may be crucial for performing mechanical movement that can indeed align the object at a specific position on the image sensor. In some embodiments, one may extrapolate on a time scale required for capturing e.g. 2-4 frames. In other embodiments, e.g. embodiments that require larger strokes of mechanical alignment, one may extrapolate on a time scale required for capturing e.g. 4-10 frames or more.

In some embodiments, digital alignment may be performed in order to compensate for deviations between the actual movement that was captured and the extrapolated movement.

Other embodiments may use other single, dual or multi-aperture cameras to perform object tracking, picture recording or both.

Mechanical Alignment Step 708

In exemplary embodiments, the alignment of the object, shift, rotation and zoom on the sensor can be performed optically and/or digitally (the latter is using a digital video stream). The following types of mechanical alignment can be used:

Prism movement to match object shift, for example in a dual camera shown in FIG. 8B and described in PCT/IB2019/053315. An OPFE (e.g. prism) 808 may fold the optical path around two axes (each axis being a degree of freedom, DOF). The degrees of freedom are a yaw rotation 810 around yaw rotation axis 812 which is parallel to first optical path 814 (X axis), and a pitch rotation 816 around a pitch rotation axis 818 which is parallel to the Y axis. The FOV scanning by prism movement is not performed instantaneously but requires some settling time. FOV scanning by prism movement may be performed on a time scale of about 1-30 ms for scanning e.g. 2°-5° and about 15-80 ms for scanning 10-25°.

1. Lens movement or camera module movement to modify the camera's lateral position or tilt angle to match object shift, the movements described for example in PCT/IB2016/052179. For example, the movements of the lens module may be performed using actuators in X direction 822, which correspond to a shift of the object in the Z direction, and Y directions 820. The tilt motion is convertible into a linear displacement along an optical axis of an optical element coupled to the actuator. Two actuators can be combined into an assembly capable of providing double-axis tilt, for example as described in co-owned PCT/IB2019/053315. 2. Mechanical zoom adjustment to match object scale. Some advanced camera designs may include different groups of lenses that can move with respect to each other and hence change the effective focal length of the camera, which results in optical zoom capability. The mechanical zoom can be used to optically align the scale of the object. 3. Mechanical alignment to match object rotation. For example, an OPFE tilt-created image Roll movement compensating for the object rotation. By combining the rotation of the prism around two axes (Y-818 and X-812) and by shifting the lens in the Y direction one can achieve compensation for the tangential rotation of the object (in the Roll axis). The mechanism is described in detail in Applicant's international patent application PCT/IB2016/055308.

Note that other configurations may use alternative external or internal mechanical alignment elements using motor or motion control.

Some embodiments of the method may be configured to capture scenes with very low light such as a night sky. An embodiment for night sky capturing may resemble a so called “star tracker” tripod, i.e. a tripod that follows the movement of the stars for capturing the sky (“Astrophotography”) with long exposure times. Astrophotography is typically performed under lightning conditions having about 0.1-0.0001 Lux. For Astrophotography it may be beneficial to place the camera host device at an object at rest (relative to the earth) or fixedly connect the camera host device to an object at rest. The earth performs a relative movement with respect to the stars so that for a photographer on the earth the stars may move with an angular velocity ω of about ω≈4·10⁻³ deg/s, derived from Earth's rotation of 360 deg in ˜24 hours (translates to approximately 15 deg per hour or ¼ deg per minute). As known, the actual angular velocity depends on the specific location or coordinates of the photographer on the earth. In optical alignment step 708, one may perform a movement with an OPFE or a lens or a sensor or a camera that resembles the movement of the stars. In an example, the optical alignment in step 708 may depend solely on a user's location and the camera's orientation on the earth only, i.e. no further information such as image information from a camera may be required. The user's location and the camera's orientation may be acquired directly with the camera host device, as known, or indirectly, e.g. by an outside device such a WiFi supplying device whose location is known.

In general, photographers use the “600 rule” (sometimes also the “500 rule”). The 600 rule provides a rough estimate of the maximum possible exposure time T_(Max) for a given camera setup that can be used for astrophotography. That is, exposing the sensor for T_(Max) is expected to provide maximum signal capture while still not leading to star trails in the image. The 600 rule states that T_(Max) in seconds is given by:

$\begin{matrix} {T_{Max} = \frac{600}{{CF} \times {EFL}}} & \left( {{Equation}\mspace{14mu} 1} \right) \end{matrix}$

with CF being the camera sensor's crop factor and EFL being the effective focal length (in mm) as known in the art. Typically, EFLs of cameras included in mobile devices are in the range of e.g. EFL=2.5 mm (for Ultra-Wide cameras) to EFL=25 mm (for Tele cameras). Typically, CFs of cameras included in mobile devices are in the range of e.g. CF=2.5 (for large 1/1″ sensors) to CF=10 (for ¼″ sensors). Considering the extreme cases of (a) CF=2.5 and EFL=2.5 mm (large sensor and large FOV) and (b) CF=10 and EFL=25 mm (small sensor and narrow FOV) as examples, one obtains T_(Max) values in the context of mobile astrophotography of T¹ _(Max)≈100 s and T² _(Max)≈2.4 s. The second example (CF=10, EFL=25 mm) may e.g. correspond to a folded Tele camera with high zoom factor. With a method described herein and applied in the astrophotography context for compensating the motion of stars by optically aligning the stars on the image sensor, it may be possible to use significantly longer exposure times while still obtaining crisp night sky images without star trails. Significantly longer exposure times may mean here exposure times that are longer by a factor of 1.5-40 than what is estimated using the 600 rule. As apparent from the second example, this may be especially relevant for Tele cameras. In other examples, the stars may not be aligned optically but may be aligned digitally in step 712. In yet other examples, the stars may be aligned by a combination of optical and digital alignments.

FIG. 9 shows schematically an embodiment of an electronic device numbered 900 and including multi-aperture cameras with at least one scanning Tele camera. Electronic device 900 may e.g. be a smartphone, a tablet or a laptop. Electronic device 900 comprises a first scanning Tele camera module 910 that includes an OPFE 912 for FOV scanning, and a first lens module 918 that forms a first image recorded by a first image sensor 916. A first lens actuator 924 may move lens module 918 for focusing and/or optical image stabilization (OIS). In some embodiments, electronic device 900 may further comprise an application processor (AP) 940 that includes an object aligner 942 and an image/video generator 944. In some embodiments, first calibration data may be stored in a first memory 922 of a camera module, e.g. in an EEPROM (electrically erasable programmable read only memory). In other embodiments, first calibration data may be stored in a third memory 950 such as a NVM (non-volatile memory) of the electronic device 900. The first calibration data may comprise calibration data between sensors of a Wide camera module 930 and the Tele camera module 910. In some embodiments, second calibration data may be stored in a second memory 938. In other embodiments, the second calibration data may be stored in third memory 950. In other embodiments, AP 940 may receive calibration data stored respective in a first memory located on camera module 910 and in a second memory located in camera module 930. The second calibration data may comprise calibration data between sensors of a Wide camera module 930 and the Tele camera module 910. Electronic device 900 further comprises a Wide (or Ultra-Wide) camera module 930 with a FOV larger than FOV of camera module 910 that includes a second lens module 932 that forms an image recorded by a second image sensor 934. A second lens actuator 936 may move lens module 932 for focusing and/or OIS.

In use, a processing unit such as AP 940 may receive respective first and second image data from camera modules 910 and 930 and supply camera control signals to camera modules 910 and 930. Camera control signals may include control signals to OPFE actuator 914, which may, in response to the control signals, rotate OPFE 912 for FOV scanning. The FOV scanning may be used for optically (or mechanically) aligning a selected object to a given position on the image sensor in step 708. In some embodiments, OPFE actuator 914 may actuate OPFE 912 for OIS. In some embodiments and e.g. for performing step 706, AP 940 may receive second image data from camera module 930. Object aligner 942 may be a processor configured to use the second image data for tracking the selected object and calculating control signals sent to Tele camera 910 for optically aligning the selected object to a given position on the image sensor. In other embodiments, object aligner 942 may use the first image data for tracking the selected object. In other embodiments, object aligner 942 may be configured to align an object digitally to a given position on the image sensor in step 712. In some embodiments object aligner 942 may be configured to use first image data and/or second image data for inference (estimation) of a future position of a moving object. Image or video generator 944 may be configured to generate images and image streams respectively as described in FIG. 7. In some embodiments, image/video generator 944 may be configured to average first image data from a plurality of single images. In some embodiments image/video generator 944 may be configured to generate artificial images. In some embodiments image/video generator 944 may be configured to generate images including artificial blur.

Unless otherwise stated, the use of the expression “and/or” between the last two members of a list of options for selection indicates that a selection of one or more of the listed options is appropriate and may be made.

It should be understood that where the claims or specification refer to “a” or “an” element, such reference is not to be construed as there being only one of that element.

It is appreciated that certain features in this disclosure, which are, for clarity, described in the context of separate embodiments or example, may also be provided in combination in a single embodiment. Conversely, various features in this disclosure, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination or as suitable in any other described embodiment. Certain features described in the context of various embodiments are not to be considered essential features of those embodiments, unless the embodiment is inoperative without those elements.

While this disclosure describes a limited number of embodiments, it will be appreciated that many variations, modifications and other applications of such embodiments may be made. In general, the disclosure is to be understood as not limited by the specific embodiments described herein, but only by the scope of the appended claims.

All references mentioned in this specification are herein incorporated in their entirety by reference into the specification, to the same extent as if each individual reference was specifically and individually indicated to be incorporated herein by reference. In addition, citation or identification of any reference in this application shall not be construed as an admission that such reference is available as prior art to the present application. 

What is claimed is:
 1. A method comprising: in an imaging device that includes an image sensor, a) selecting an object to be tracked in a scene; b) recording an image or an image stream to provide a respective recorded image or recorded image stream; and c) aligning the selected object to a same given position on the image sensor while the selected object moves relative to the imaging device or relative to the scene, thereby creating a blurred image background and/or foreground relative to the selected object.
 2. The method of claim 1, wherein the aligning includes aligning the selected object to a same given position on the image sensor optically.
 3. The method of claim 1, wherein the imaging device includes a first camera having a first image sensor and a second camera having a second image sensor, wherein the recording and the aligning are performed with the first camera and wherein at least one parameter needed for the aligning is calculated using information provided by the second camera.
 4. The method of claim 1, wherein the image sensor includes a first plurality of pixels that provide information for calculating at least one parameter needed for the aligning, and a second plurality of pixels used for the recording.
 5. The method of claim 1, wherein the recording includes recording a plurality of frames and wherein the aligning includes aligning the selected object optically to a similar position on the image sensor and further aligning the selected object digitally to the same given position on the image sensor.
 6. The method of claim 1, wherein the recording includes recording a plurality of frames and wherein the aligning includes aligning the selected object optically to discrete pixels on the image sensor and further aligning the selected object digitally to the same given position on the image sensor.
 7. The method of claim 1, wherein the recorded image stream includes a plurality of individual images and wherein the method further comprises generating artificial image data using individual image data.
 8. The method of claim 1, further comprising playing the recorded image stream with a frame per second (fps) rate different than a fps rate used for recording the image stream.
 9. The method of claim 1, wherein the recorded image stream is divided into two or more sequences and wherein the method further comprises playing each sequence with a different frame per second rate.
 10. The method of claim 1, further comprising dividing the recorded image stream into two or more sequences that exhibit a different degree of blurring.
 11. The method of claim 1, wherein the aligning includes performing an inference for a future position of the selected object.
 12. The method of claim 1, wherein the selected object includes a star.
 13. The method of claim 3, wherein the at least one parameter needed for the aligning is selected from the group consisting of a shift parameter, a scale parameter and a rotation parameter.
 14. The method of claim 3, wherein the recording includes recording a plurality of frames and wherein the aligning includes aligning the selected object optically to a similar position on the first image sensor and further aligning the selected object digitally to the same given position on the first image sensor.
 15. The method of claim 3, wherein the recording includes recording a plurality of frames and wherein the aligning includes aligning the selected object optically to discrete pixels on the first image sensor and further aligning the selected object digitally to the same given position on the first image sensor.
 16. The method of claim 3, wherein calibration data between the first camera and the second camera is stored in a non-volatile memory.
 17. The method of claim 4, wherein the first and second pluralities of pixels add up to a total number of sensor pixels.
 18. The method of claim 4, wherein the at least one parameter needed for the aligning is selected from the group consisting of a shift parameter, a scale parameter and a rotation parameter.
 19. The method of claim 7, wherein the artificial image data is used to increase uniformity in image blurring.
 20. A system comprising: a) an imaging device that includes an image sensor for recording an image or an image stream to provide a respective recorded image or recorded image stream; and b) a processor configured to select an object to be tracked in a scene and to align the selected object to a same given position on the image sensor while the selected object moves relative to the imaging device or relative to the scene, thereby creating a blurred image background and/or foreground relative to the selected object.
 21. The system of claim 20, wherein the processor configuration to align the selected object to a same given position on the image sensor includes a configuration to instruct a reflecting element to scan a field of view that includes the object.
 22. The system of claim 20, wherein the imaging device comprises a first camera and a second camera.
 23. The system of claim 20, wherein the system is a smartphone. 